package com.tiancheng.trade.merchant.service;

import com.tiancheng.trade.commom.web.model.response.MerchantPayRegFileResVO;
import com.tiancheng.trade.merchant.dto.requestdto.MinioUploadDto;
import io.minio.errors.*;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @Author: kellen
 * @Description: 文件上传服务
 * @Date: create in 2024/12/24 14:44
 */
public interface IUploadService {
    /**
     * 上传文件
     * @param file
     * @return
     */
    MinioUploadDto upload(MultipartFile file);

    MultipartFile downLoad(String fileName) throws Exception;

}
